import * as api from './util';

export function getShortMsgList(pageNo, pageSize) {
  let postbody = { pageNo, pageSize };
  return api.post('/applets/provider/shortMessage/list', postbody);
};

export function getShortMsgDetail(id) {
  return api.get('/applets/provider/shortMessage/get', { id: id });
};

export function getOrderList(id, pageNo, pageSize) {
  let postbody = {
    MessageId: id,
    pageNo: pageNo,
    pageSize: pageSize
  }
  return api.get('/applets/provider/order/findOrderListByMessageId', postbody);
};

export function getPhoneList(id, customId ,pageNo, pageSize) {
  let postbody = {
    id: id,
    customId: customId ,
    pageNo: pageNo,
    pageSize: pageSize
  }
  return api.get('/applets/provider/customAccount/getByMessageId', postbody);
};